# 九九乘法表
n = 1
m = 1
while n < 10:
    m = 1
    while m < 10:
        if m > n:
            break
        print(f' {m}×{n}={n*m} ', end=' ')
        m += 1
    print()
    n += 1

# for循环
for x in range(1, 10):
    for y in range(1, x+1):
        print(f' {y}×{x}={x*y} ', end=' ')
    print()

# 反向输出九九乘法表
m = 9
while m > 0:
    for n in range(1, 10):
        if m >= n:
            print(f' {n}×{m}={m*n} ', end=' ')
    print()
    m -= 1


